package com.woniuxy.microgoodsserver.auctionmag.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microgoodsserver.bean.GoodsBean;
import com.woniuxy.microgoodsserver.bean.PageRequest;

import java.util.List;

public interface GoodsService {

        //返回商品的全部消息，以分页形式
        PageInfo<GoodsBean> goodsfindAll(PageRequest pageRequest, GoodsBean goodsBean);

        //以id查商品
        GoodsBean goodsfindAllById(int id);

        //增加商品
        int saveGoods(GoodsBean goodsBean);

        //修改商品信息
        int updateGoods(GoodsBean goodsBean);

        //删除商品信息
        int delGoods(GoodsBean goodsBean);

}
